from api import Api


class Utils(object):
    def __init__(self):
        self.api = Api()

    # 发送验证码
    def send_msg(self, mobile):
        self.api.send_img(mobile)

    # 扫描商品库存
    def scan_goods(self):
        has_goods_list = self.api.check_goods_has()
        print(f"有货总结总数{len(has_goods_list)}=========================")
